package com.slz3.business.module.goodsManagement.gooBaseGoodsSpecificationValue.steward;

import com.slz3.business.module.goodsManagement.gooBaseGoodsSpecificationValue.domain.GooBaseGoodsSpecificationValue;
import com.slz3.business.module.goodsManagement.gooBaseGoodsSpecificationValue.domain.GooBaseGoodsSpecificationValueCondition;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.web.reactive.function.server.ServerRequest;
import org.springframework.web.reactive.function.server.ServerResponse;
import reactor.core.publisher.Mono;

import javax.annotation.Resource;

@Component
public class GooBaseGoodsSpecificationValueResponse {

    @Autowired
    private GooBaseGoodsSpecificationValueResController gooBaseGoodsSpecificationValueResController;

    public  Mono<ServerResponse> add(ServerRequest req) {
        return req.bodyToMono(GooBaseGoodsSpecificationValue.class).flatMap(gooBaseGoodsSpecificationValue ->
                gooBaseGoodsSpecificationValueResController.add(req, gooBaseGoodsSpecificationValue)
        );
    }

    public  Mono<ServerResponse> delete(ServerRequest req) {
        return req.bodyToMono(GooBaseGoodsSpecificationValueCondition.class).flatMap(gooBaseGoodsSpecificationValueCondition ->
                gooBaseGoodsSpecificationValueResController.delete(req, gooBaseGoodsSpecificationValueCondition)
        );
    }

    public  Mono<ServerResponse> modify(ServerRequest req) {
        return req.bodyToMono(GooBaseGoodsSpecificationValue.class).flatMap(gooBaseGoodsSpecificationValue ->
                gooBaseGoodsSpecificationValueResController.modify(req, gooBaseGoodsSpecificationValue)
        );
    }


    public  Mono<ServerResponse> list(ServerRequest req) {
        return gooBaseGoodsSpecificationValueResController.list(req);
    }

    public  Mono<ServerResponse> info(ServerRequest req) {
        return gooBaseGoodsSpecificationValueResController.info(req);
    }

    public  Mono<ServerResponse> choice(ServerRequest req) {
        return gooBaseGoodsSpecificationValueResController.choice(req);
    }

    public  Mono<ServerResponse> auditSubmit(ServerRequest req) {
        return req.bodyToMono(GooBaseGoodsSpecificationValueCondition.class).flatMap(gooBaseGoodsSpecificationValueCondition ->
                gooBaseGoodsSpecificationValueResController.auditSubmit(req, gooBaseGoodsSpecificationValueCondition)
        );
    }

    public  Mono<ServerResponse> audit(ServerRequest req) {
        return req.bodyToMono(GooBaseGoodsSpecificationValueCondition.class).flatMap(gooBaseGoodsSpecificationValueCondition ->
                gooBaseGoodsSpecificationValueResController.audit(req, gooBaseGoodsSpecificationValueCondition)
        );
    }

    public  Mono<ServerResponse> auditReject(ServerRequest req) {
        return req.bodyToMono(GooBaseGoodsSpecificationValueCondition.class).flatMap(gooBaseGoodsSpecificationValueCondition ->
                gooBaseGoodsSpecificationValueResController.auditReject(req, gooBaseGoodsSpecificationValueCondition)
        );
    }

    public  Mono<ServerResponse> usingEnable(ServerRequest req) {
        return req.bodyToMono(GooBaseGoodsSpecificationValueCondition.class).flatMap(gooBaseGoodsSpecificationValueCondition ->
                gooBaseGoodsSpecificationValueResController.usingEnable(req, gooBaseGoodsSpecificationValueCondition)
        );
    }

    public  Mono<ServerResponse> usingDisable(ServerRequest req) {
        return req.bodyToMono(GooBaseGoodsSpecificationValueCondition.class).flatMap(gooBaseGoodsSpecificationValueCondition ->
                gooBaseGoodsSpecificationValueResController.usingDisable(req, gooBaseGoodsSpecificationValueCondition)
        );
    }   

}
